<?php

$db_host = 'localhost';
$db_name = 'ger';
$db_user = 'root';
$db_password = '';

$link = mysql_connect($db_host, $db_user, $db_password);
if (!$link) {
    die('Could not connect: ' . mysql_error());
}

$db_selected = mysql_select_db($db_name, $link);
if (!$db_selected) {
    die ('Can\'t use foo : ' . mysql_error());
}

?>